﻿using Microsoft.AspNetCore.Mvc;
using WeChatRobotSDKServer;

// For more information on enabling Web API for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860

namespace WeChatRobotSDKApi.Controllers
{
    [Route("[controller]/[action]")]
    public class DemoController : Controller
    {
        public WeChatRobotServer _weChatRobotServer;
        public DemoController(WeChatRobotServer weChatRobotServer)
        {
            _weChatRobotServer = weChatRobotServer;
        }

        public void Demo()
        {
            _weChatRobotServer.OpenWechat();
            //InjectDll(_weChatRobotServer.WeChat.pid);

        }


        public void SendDemo()
        {
           // _weChatRobotServer.SendTextMessage("luoguoqi123", "测试1243");

            _weChatRobotServer.SendChatroomAtMsg("18711008083@chatroom", "zixinwujia","何必一念执着","测试");
        }



    }
}
